<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>人际关系推荐 - 兴趣社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #f0f4ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .section-desc {
            color: var(--secondary);
            max-width: 800px;
        }
        
        .recommendation-section {
            margin-bottom: 3rem;
        }
        
        .section-intro {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .section-heading {
            font-size: 1.4rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .view-more {
            color: var(--primary);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: all 0.2s;
        }
        
        .view-more:hover {
            color: #4338ca;
        }
        
        /* 通用卡片样式 */
        .relation-card {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .relation-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--secondary);
            font-size: 0.85rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .card-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.85rem;
            color: var(--secondary);
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.bookmarked {
            color: var(--primary);
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
        }
        
        .author-meta {
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        /* 布局1: 垂直卡片布局 */
        .vertical-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .vertical-card {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .vertical-card .relation-content {
            margin-bottom: 1rem;
            flex: 1;
        }
        
        .relation-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            transition: color 0.2s;
        }
        
        .relation-card:hover .relation-title {
            color: var(--primary);
        }
        
        .relation-desc {
            color: var(--secondary);
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .image-container {
            border-radius: 0.5rem;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .single-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .multi-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
            aspect-ratio: 1;
        }
        
        .multi-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image {
            background-color: var(--light);
            border: 1px dashed var(--border);
            border-radius: 0.5rem;
            padding: 2rem 1rem;
            text-align: center;
            color: var(--secondary);
            margin-bottom: 1rem;
        }
        
        .no-image i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: var(--primary-light);
        }
        
        .vertical-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }
        
        /* 布局2: 水平卡片布局 */
        .horizontal-cards {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        
        .horizontal-card {
            display: flex;
            overflow: hidden;
        }
        
        .horizontal-card .image-column {
            flex: 0 0 200px;
        }
        
        .horizontal-card .image-container {
            width: 100%;
            height: 100%;
            margin-bottom: 0;
        }
        
        .horizontal-card .single-image {
            height: 100%;
        }
        
        .horizontal-card .content-column {
            flex: 1;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .horizontal-card .relation-content {
            flex: 1;
        }
        
        .horizontal-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            margin-top: auto;
            border-top: 1px solid var(--border);
        }
        
        /* 布局3: 紧凑网格布局 */
        .compact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.25rem;
        }
        
        .compact-card {
            padding: 1rem;
        }
        
        .compact-card .image-container {
            margin-bottom: 0.75rem;
        }
        
        .compact-card .single-image {
            height: 140px;
        }
        
        .compact-card .relation-title {
            font-size: 1rem;
            margin-bottom: 0.25rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .compact-card .relation-desc {
            font-size: 0.85rem;
            -webkit-line-clamp: 2;
            margin-bottom: 0.75rem;
        }
        
        .compact-card .author-info {
            margin-bottom: 0.75rem;
        }
        
        .compact-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 布局4: 大图展示布局 */
        .featured-layout {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .featured-card {
            display: flex;
            overflow: hidden;
        }
        
        .featured-card .image-column {
            flex: 0 0 40%;
        }
        
        .featured-card .image-container {
            width: 100%;
            height: 100%;
            margin-bottom: 0;
        }
        
        .featured-card .single-image {
            height: 100%;
        }
        
        .featured-card .content-column {
            flex: 1;
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
        }
        
        .featured-card .relation-title {
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }
        
        .featured-card .relation-desc {
            font-size: 1rem;
            -webkit-line-clamp: 4;
            margin-bottom: 1.5rem;
        }
        
        .featured-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            margin-top: auto;
            border-top: 1px solid var(--border);
        }
        
        .featured-card .card-meta {
            font-size: 0.9rem;
            gap: 1.5rem;
        }
        
        .featured-card .action-btn {
            font-size: 0.9rem;
            gap: 0.5rem;
        }
        
        /* 关系类型标签 */
        .relation-type {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
        }
        
        .type-friend {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }
        
        .type-colleague {
            background-color: rgba(79, 70, 229, 0.1);
            color: var(--primary);
        }
        
        .type-classmate {
            background-color: rgba(245, 158, 11, 0.1);
            color: var(--warning);
        }
        
        .type-family {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .featured-card {
                flex-direction: column;
            }
            
            .featured-card .image-column {
                flex: 0 0 250px;
            }
            
            .horizontal-card {
                flex-direction: column;
            }
            
            .horizontal-card .image-column {
                flex: 0 0 180px;
            }
        }
        
        @media (max-width: 768px) {
            .vertical-cards {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .section-heading {
                font-size: 1.25rem;
            }
        }
        
        @media (max-width: 576px) {
            .vertical-cards, .compact-grid {
                grid-template-columns: 1fr;
            }
            
            .section-intro {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .card-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .featured-card .image-column {
                flex: 0 0 200px;
            }
            
            .featured-card .relation-title {
                font-size: 1.25rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users text-primary me-2"></i>兴趣社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">人际关系</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">社区</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <div class="section-header">
            <h1 class="section-title">人际关系推荐</h1>
            <p class="section-desc">发现可能认识的人，拓展你的社交圈。基于你的兴趣和人脉网络，为你推荐以下人际关系。</p>
        </div>
        
        <!-- 布局1: 垂直卡片布局 -->
        <div class="recommendation-section">
            <div class="section-intro">
                <h2 class="section-heading">
                    <i class="fas fa-user-friends text-primary"></i>
                    可能认识的人
                </h2>
                <a href="#" class="view-more">
                    查看全部
                    <i class="fas fa-chevron-right"></i>
                </a>
            </div>
            
            <div class="vertical-cards">
                <!-- 卡片1: 单张图片 -->
                <div class="relation-card vertical-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=10" alt="张晓明的活动照片" class="single-image">
                    </div>
                    
                    <div class="relation-content">
                        <span class="relation-type type-friend">共同好友</span>
                        <h3 class="relation-title">张晓明 - 摄影爱好者</h3>
                        <p class="relation-desc">我们有5个共同好友，都喜欢户外摄影和旅行。张晓明最近参加了"城市风光摄影展"，发布了12组摄影作品。</p>
                        
                        <div class="author-info">
                            <img src="https://picsum.photos/100/100?random=101" alt="张晓明的头像" class="author-avatar">
                            <div>
                                <div class="author-name">张晓明</div>
                                <div class="author-meta">摄影师 · 3km</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>2.3k</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>48</span>
                            </div>
                        </div>
                        
                        <div class="card-actions">
                            <div class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>126</span>
                            </div>
                            <div class="action-btn bookmark-btn">
                                <i class="far fa-bookmark"></i>
                                <span>32</span>
                            </div>
                            <button class="btn btn-sm btn-primary">加好友</button>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片2: 多张图片 -->
                <div class="relation-card vertical-card">
                    <div class="image-container">
                        <div class="multi-images">
                            <img src="https://picsum.photos/300/300?random=21" alt="李婷的照片1" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=22" alt="李婷的照片2" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=23" alt="李婷的照片3" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=24" alt="李婷的照片4" class="multi-image">
                        </div>
                    </div>
                    
                    <div class="relation-content">
                        <span class="relation-type type-colleague">同行推荐</span>
                        <h3 class="relation-title">李婷 - 平面设计师</h3>
                        <p class="relation-desc">李婷是一位经验丰富的平面设计师，擅长视觉创意和品牌设计。她关注了你的作品，可能对你的摄影风格感兴趣。</p>
                        
                        <div class="author-info">
                            <img src="https://picsum.photos/100/100?random=102" alt="李婷的头像" class="author-avatar">
                            <div>
                                <div class="author-name">李婷</div>
                                <div class="author-meta">设计师 · 5km</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>1.8k</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>36</span>
                            </div>
                        </div>
                        
                        <div class="card-actions">
                            <div class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>98</span>
                            </div>
                            <div class="action-btn bookmark-btn">
                                <i class="far fa-bookmark"></i>
                                <span>24</span>
                            </div>
                            <button class="btn btn-sm btn-primary">加好友</button>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片3: 无图片 -->
                <div class="relation-card vertical-card">
                    <div class="no-image">
                        <i class="fas fa-user-circle"></i>
                        <p>暂无照片</p>
                    </div>
                    
                    <div class="relation-content">
                        <span class="relation-type type-classmate">校友推荐</span>
                        <h3 class="relation-title">王建国 - 建筑工程师</h3>
                        <p class="relation-desc">和你毕业于同一所大学，现在从事建筑设计工作。喜欢建筑摄影，经常在校园摄影群分享作品。</p>
                        
                        <div class="author-info">
                            <img src="https://picsum.photos/100/100?random=103" alt="王建国的头像" class="author-avatar">
                            <div>
                                <div class="author-name">王建国</div>
                                <div class="author-meta">工程师 · 8km</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>27</span>
                            </div>
                        </div>
                        
                        <div class="card-actions">
                            <div class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>76</span>
                            </div>
                            <div class="action-btn bookmark-btn">
                                <i class="far fa-bookmark"></i>
                                <span>18</span>
                            </div>
                            <button class="btn btn-sm btn-primary">加好友</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局2: 水平卡片布局 -->
        <div class="recommendation-section">
            <div class="section-intro">
                <h2 class="section-heading">
                    <i class="fas fa-network-wired text-primary"></i>
                    兴趣相投的人
                </h2>
                <a href="#" class="view-more">
                    查看全部
                    <i class="fas fa-chevron-right"></i>
                </a>
            </div>
            
            <div class="horizontal-cards">
                <!-- 水平卡片1: 单张图片 -->
                <div class="relation-card horizontal-card">
                    <div class="image-column">
                        <div class="image-container">
                            <img src="https://picsum.photos/600/800?random=30" alt="刘芳的活动照片" class="single-image">
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <div class="relation-content">
                            <span class="relation-type type-friend">兴趣小组</span>
                            <h3 class="relation-title">刘芳 - 旅行摄影师</h3>
                            <p class="relation-desc">刘芳是一位资深旅行摄影师，去过20多个国家拍摄自然风光和人文景观。她和你都加入了"环球摄影爱好者"小组，并且都喜欢使用广角镜头拍摄风光。最近她发布了一组关于北欧极光的摄影作品，获得了很多好评。</p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/100/100?random=104" alt="刘芳的头像" class="author-avatar">
                                <div>
                                    <div class="author-name">刘芳</div>
                                    <div class="author-meta">旅行摄影师 · 发表作品 156 篇</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="card-footer">
                            <div class="card-meta">
                                <div class="meta-item">
                                    <i class="far fa-eye"></i>
                                    <span>5.7k</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-comment"></i>
                                    <span>132</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-user-friends"></i>
                                    <span>1.2k 粉丝</span>
                                </div>
                            </div>
                            
                            <div class="card-actions">
                                <div class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>356</span>
                                </div>
                                <div class="action-btn bookmark-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>89</span>
                                </div>
                                <button class="btn btn-sm btn-primary">加好友</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 水平卡片2: 无图片 -->
                <div class="relation-card horizontal-card">
                    <div class="image-column">
                        <div class="no-image" style="height: 100%; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center;">
                            <i class="fas fa-camera"></i>
                            <p>摄影博主</p>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <div class="relation-content">
                            <span class="relation-type type-colleague">行业专家</span>
                            <h3 class="relation-title">陈明 - 商业摄影师</h3>
                            <p class="relation-desc">陈明拥有10年商业摄影经验，专注于产品和广告摄影。他的作品曾多次获得行业奖项，目前经营着自己的摄影工作室。你最近浏览了他发布的"产品摄影布光技巧"系列教程，他也对你的微距摄影作品表示了赞赏。</p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/100/100?random=105" alt="陈明的头像" class="author-avatar">
                                <div>
                                    <div class="author-name">陈明</div>
                                    <div class="author-meta">商业摄影师 · 工作室创始人</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="card-footer">
                            <div class="card-meta">
                                <div class="meta-item">
                                    <i class="far fa-eye"></i>
                                    <span>8.2k</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-comment"></i>
                                    <span>215</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-user-friends"></i>
                                    <span>3.5k 粉丝</span>
                                </div>
                            </div>
                            
                            <div class="card-actions">
                                <div class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>528</span>
                                </div>
                                <div class="action-btn bookmark-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>156</span>
                                </div>
                                <button class="btn btn-sm btn-primary">加好友</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局3: 紧凑网格布局 -->
        <div class="recommendation-section">
            <div class="section-intro">
                <h2 class="section-heading">
                    <i class="fas fa-th text-primary"></i>
                    附近的人
                </h2>
                <a href="#" class="view-more">
                    查看全部
                    <i class="fas fa-chevron-right"></i>
                </a>
            </div>
            
            <div class="compact-grid">
                <!-- 紧凑卡片1: 单张图片 -->
                <div class="relation-card compact-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=41" alt="赵晓的照片" class="single-image">
                    </div>
                    
                    <span class="relation-type type-friend">附近</span>
                    <h3 class="relation-title">赵晓 - 手机摄影爱好者</h3>
                    <p class="relation-desc">距离1.2km，喜欢用手机记录城市生活瞬间。</p>
                    
                    <div class="author-info">
                        <img src="https://picsum.photos/100/100?random=106" alt="赵晓的头像" class="author-avatar">
                        <div>
                            <div class="author-name">赵晓</div>
                            <div class="author-meta">1.2km · 2小时前活跃</div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>856</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>68</span>
                            </div>
                        </div>
                        
                        <button class="btn btn-sm btn-primary">加好友</button>
                    </div>
                </div>
                
                <!-- 紧凑卡片2: 多张图片 -->
                <div class="relation-card compact-card">
                    <div class="image-container">
                        <div class="multi-images">
                            <img src="https://picsum.photos/300/300?random=51" alt="孙艺的照片1" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=52" alt="孙艺的照片2" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=53" alt="孙艺的照片3" class="multi-image">
                            <img src="https://picsum.photos/300/300?random=54" alt="孙艺的照片4" class="multi-image">
                        </div>
                    </div>
                    
                    <span class="relation-type type-classmate">附近</span>
                    <h3 class="relation-title">孙艺 - 人像摄影师</h3>
                    <p class="relation-desc">距离2.5km，擅长人像和街头摄影。</p>
                    
                    <div class="author-info">
                        <img src="https://picsum.photos/100/100?random=107" alt="孙艺的头像" class="author-avatar">
                        <div>
                            <div class="author-name">孙艺</div>
                            <div class="author-meta">2.5km · 5小时前活跃</div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>1.3k</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>92</span>
                            </div>
                        </div>
                        
                        <button class="btn btn-sm btn-primary">加好友</button>
                    </div>
                </div>
                
                <!-- 紧凑卡片3: 无图片 -->
                <div class="relation-card compact-card">
                    <div class="no-image">
                        <i class="fas fa-camera-retro"></i>
                        <p>摄影爱好者</p>
                    </div>
                    
                    <span class="relation-type type-friend">附近</span>
                    <h3 class="relation-title">周强 - 摄影器材发烧友</h3>
                    <p class="relation-desc">距离3.8km，喜欢分享摄影器材评测。</p>
                    
                    <div class="author-info">
                        <img src="https://picsum.photos/100/100?random=108" alt="周强的头像" class="author-avatar">
                        <div>
                            <div class="author-name">周强</div>
                            <div class="author-meta">3.8km · 昨天活跃</div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>724</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>45</span>
                            </div>
                        </div>
                        
                        <button class="btn btn-sm btn-primary">加好友</button>
                    </div>
                </div>
                
                <!-- 紧凑卡片4: 单张图片 -->
                <div class="relation-card compact-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=42" alt="吴敏的照片" class="single-image">
                    </div>
                    
                    <span class="relation-type type-colleague">附近</span>
                    <h3 class="relation-title">吴敏 - 自然摄影师</h3>
                    <p class="relation-desc">距离4.2km，专注于动植物生态摄影。</p>
                    
                    <div class="author-info">
                        <img src="https://picsum.photos/100/100?random=109" alt="吴敏的头像" class="author-avatar">
                        <div>
                            <div class="author-name">吴敏</div>
                            <div class="author-meta">4.2km · 3天前活跃</div>
                        </div>
                    </div>
                    
                    <div class="card-footer">
                        <div class="card-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>987</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>76</span>
                            </div>
                        </div>
                        
                        <button class="btn btn-sm btn-primary">加好友</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局4: 大图展示布局 -->
        <div class="recommendation-section">
            <div class="section-intro">
                <h2 class="section-heading">
                    <i class="fas fa-star text-primary"></i>
                    推荐关注
                </h2>
                <a href="#" class="view-more">
                    查看全部
                    <i class="fas fa-chevron-right"></i>
                </a>
            </div>
            
            <div class="featured-layout">
                <!-- 大图卡片1: 单张图片 -->
                <div class="relation-card featured-card">
                    <div class="image-column">
                        <div class="image-container">
                            <img src="https://picsum.photos/800/600?random=60" alt="黄大师的作品" class="single-image">
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <div class="relation-content">
                            <span class="relation-type type-colleague">行业领袖</span>
                            <h3 class="relation-title">黄志强 - 国家一级摄影师</h3>
                            <p class="relation-desc">黄志强是国内知名的风光摄影师，拥有30年摄影经验，其作品曾在国内外多个展览中展出并获奖。他专注于中国西部自然风光的拍摄，出版了《西部风光》《高原光影》等多部摄影集。近期正在举办"光影中国"巡回讲座，分享他的摄影理念和创作经验。你的12位好友已经关注了他。</p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/100/100?random=110" alt="黄志强的头像" class="author-avatar">
                                <div>
                                    <div class="author-name">黄志强</div>
                                    <div class="author-meta">国家一级摄影师 · 摄影教育工作者</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="card-footer">
                            <div class="card-meta">
                                <div class="meta-item">
                                    <i class="far fa-eye"></i>
                                    <span>24.5k</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-comment"></i>
                                    <span>1.8k</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-user-friends"></i>
                                    <span>32.6k 粉丝</span>
                                </div>
                            </div>
                            
                            <div class="card-actions">
                                <div class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>5.7k</span>
                                </div>
                                <div class="action-btn bookmark-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>2.3k</span>
                                </div>
                                <button class="btn btn-primary">关注</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 大图卡片2: 多张图片 -->
                <div class="relation-card featured-card">
                    <div class="image-column">
                        <div class="image-container">
                            <div class="multi-images" style="aspect-ratio: auto;">
                                <img src="https://picsum.photos/400/400?random=71" alt="摄影工作室的照片1" class="multi-image">
                                <img src="https://picsum.photos/400/400?random=72" alt="摄影工作室的照片2" class="multi-image">
                                <img src="https://picsum.photos/400/400?random=73" alt="摄影工作室的照片3" class="multi-image">
                                <img src="https://picsum.photos/400/400?random=74" alt="摄影工作室的照片4" class="multi-image">
                                <img src="https://picsum.photos/400/400?random=75" alt="摄影工作室的照片5" class="multi-image">
                                <img src="https://picsum.photos/400/400?random=76" alt="摄影工作室的照片6" class="multi-image">
                            </div>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <div class="relation-content">
                            <span class="relation-type type-colleague">机构账号</span>
                            <h3 class="relation-title">光影摄影工作室</h3>
                            <p class="relation-desc">光影摄影工作室是一家专业的商业摄影机构，提供产品摄影、广告摄影、企业形象摄影等服务。他们拥有专业的摄影团队和先进的摄影设备，与多家知名品牌保持长期合作关系。工作室定期举办摄影培训课程和交流活动，适合不同水平的摄影爱好者参与。</p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/100/100?random=111" alt="光影摄影工作室的头像" class="author-avatar">
                                <div>
                                    <div class="author-name">光影摄影工作室</div>
                                    <div class="author-meta">专业摄影机构 · 成立于2015年</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="card-footer">
                            <div class="card-meta">
                                <div class="meta-item">
                                    <i class="far fa-eye"></i>
                                    <span>18.7k</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-comment"></i>
                                    <span>956</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-user-friends"></i>
                                    <span>25.3k 粉丝</span>
                                </div>
                            </div>
                            
                            <div class="card-actions">
                                <div class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>3.2k</span>
                                </div>
                                <div class="action-btn bookmark-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>1.5k</span>
                                </div>
                                <button class="btn btn-primary">关注</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    let count = parseInt(countElement.textContent);
                    
                    if (this.classList.contains('liked')) {
                        // 取消点赞
                        this.classList.remove('liked');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElement.textContent = count - 1;
                    } else {
                        // 点赞
                        this.classList.add('liked');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElement.textContent = count + 1;
                    }
                });
            });
            
            // 收藏功能
            const bookmarkButtons = document.querySelectorAll('.bookmark-btn');
            bookmarkButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    let count = parseInt(countElement.textContent);
                    
                    if (this.classList.contains('bookmarked')) {
                        // 取消收藏
                        this.classList.remove('bookmarked');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElement.textContent = count - 1;
                    } else {
                        // 收藏
                        this.classList.add('bookmarked');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElement.textContent = count + 1;
                    }
                });
            });
            
            // 加好友/关注按钮功能
            const addFriendButtons = document.querySelectorAll('.btn-primary');
            addFriendButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const originalText = this.innerHTML;
                    const isAddFriend = originalText.includes('加好友');
                    const isFollow = originalText.includes('关注');
                    
                    if (isAddFriend || isFollow) {
                        this.innerHTML = '<i class="fas fa-check me-1"></i> 已' + (isAddFriend ? '添加' : '关注');
                        this.classList.remove('btn-primary');
                        this.classList.add('btn-success');
                    } else {
                        this.innerHTML = isAddFriend ? '<i class="fas fa-user-plus me-1"></i> 加好友' : '<i class="fas fa-user-plus me-1"></i> 关注';
                        this.classList.remove('btn-success');
                        this.classList.add('btn-primary');
                    }
                });
            });
        });
    </script>
</body>
</html>
    